package com.behavior.visitor.example;

import com.behavior.visitor.example.visitor.impl.Parent;
import com.behavior.visitor.example.visitor.impl.Principal;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class ApiTest {


    public static void main(String[] args) {

        DataView dataView = new DataView();

        System.out.print("\r\n家长视角访问：");
        dataView.show(new Parent());     // 家长

        System.out.print("\r\n校长视角访问：");
        dataView.show(new Principal());  // 校长



    }
}
